<?php
/**
 * Load Contact Once
 * To be included as the first component of any Mission View
 * 
 * @package missions
 */
$id = Xview::instance()->val('missionid',Xview::instance()->val('mid'));
try {
	/* @var $contact Hive\Mission */
	$mission = Fox\Dao::load(Hive\Mission::className(),$id);
}
catch (Fox\Object\Exception\NotExist $e)
{
	Xview::instance()->systemError($e->getMessage(),"?mod=missions&act=search");
}
return $mission;